package com.wafersystems.cloud.dto;

import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;

@Data
public class DeviceCtrlCommand {

  /**
   * 设备编号.
   */
  @JsonProperty(value = "devId")
  @NotNull
  private String devId;

  /**
   * 1:开 2:关 3：停（窗帘）.
   */
  @JsonProperty(value = "apply")
  @NotNull
  private Integer apply;

  @Override
  public String toString() {
    return "AllDeviceCtrlCommand [devId=" + devId + ", apply=" + apply + "]";
  }

}
